package org.ykh.springcloud.service.impl;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.ykh.springcloud.dao.PaymentDao;
import org.ykh.springcloud.entities.Payment;
import org.ykh.springcloud.service.PaymentService;

/**
 * @author ykh
 * @create 2022-01-03 18:52
 */
//@Service
@Mapper
public class PaymentServiceImpl implements PaymentService {
    @Autowired
    private PaymentDao paymentDao;

    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
